/*
 * Computer.cpp
 *
 *  Created on: Apr 4, 2012
 *      Author: s146913
 */

#include "Computer.h"

Computer::Computer() : ioDBuffers(new vector<DrieBuffer*>()), panDBuffer(new DrieBuffer(new PanoramaBuffer(), new PanoramaBuffer(), new PanoramaBuffer())) {
	for(int i = 0; i < 9; i++) {
		ioDBuffers->push_back(new DrieBuffer(new CameraBuffer(), new CameraBuffer(), new CameraBuffer()));
	}
}

Computer::~Computer() {
	delete panDBuffer;

	for(int i = 0; i < 9; i++) {
		delete ioDBuffers->at(i);
	}
	delete ioDBuffers;
}

CameraBuffer* Computer::popFromMemory(int nummer) {
	// wederom iets met nummer enzooo
	// returnt dan iets van de DrieBuffer read dinges
	return 0;
}

void Computer::pushToMemory(CameraBuffer* toPush) {
	// iets met index van CameraBuffer enzo
	// en dan aan de goede DrieBuffer koppelen
}

DrieBuffer* Computer::getPanDBuffer() {
	return panDBuffer;
}

vector<DrieBuffer*>* Computer::getIoDBuffers() {
	return ioDBuffers;
}
